package com.orion.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @date 2021/7/8
 */
@RestController
@RequestMapping("/myoauth")
public class MyController {

    @GetMapping("/index")
    public String index(){
        return "index";
    }

    @GetMapping("/api")
    public String api(){
        return  "my api";
    }

    @GetMapping("/xx")
    public String xx(Authentication authentication){
        return  authentication.toString();
    }

}
